package com.yuxinmuyu.sports_management.bean.request;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
@ApiModel("获取运动会成绩")
public class GetSportsScoreRequest {

    @ApiModelProperty("学期ID")
    @NotBlank(message = "学期ID不能为空")
    private String yearTermID;

    @ApiModelProperty("项目ID")
    @NotNull(message = "项目ID不能为空")
    private Integer sportsID;

    @ApiModelProperty("报名人ID")
    @NotBlank(message = "报名人ID不能为空")
    private String userID;

    @ApiModelProperty("成绩")
    @NotBlank(message = "学期ID不能为空")
    private String score;

    @ApiModelProperty("是否获奖")
    @NotNull(message = "是否获奖不能为空")
    private boolean awardsFlag;

    @ApiModelProperty("获奖等级")
    @NotBlank(message = "获奖等级不能为空")
    private String awardsName;
}
